package ooday04;

public class Fish extends Animal implements Swim{
    Fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println("一只"+color+"颜色,今年"+age+"岁了,名字叫"+name+"的大白鲨,正在深海里吃小鱼");
    }
    public void swim(){
        System.out.println("有一只大白鲨,名字叫"+name+"的,是"+color+"颜色的,它今年"+age+"岁了,现在正深海里肆无忌惮的游泳");
    }


}
